{$header}
<div id="main" class="main" >
    <div class="content">
  <h3 class="heading">新增客户询单 [ <a href="__URL__">返回列表</a> ]</h3>
<div id="result" class="result none"></div>
<form class="form-horizontal well" method='post' id="form1" name="form1" action="__URL__/insert/" class="form">
<table cellpadding=3 cellspacing=3 >
    <tr>
    <td class="tRight" width="150px">客户：</td>
	<td class="tLeft" >
        <div class="input-append">
                <input id="cq" name="cq" class="input-xlarge search-query"
                <notempty name='_REQUEST.customer_id'>value="{$_REQUEST.customer_id|getModelName='Customer'}"</notempty>
                 placeholder="搜索">
                <input id="hz" name="customer_id" 
                <notempty name='_REQUEST.customer_id'>value="{$_REQUEST.customer_id}"</notempty>
                 type="hidden"></input>
                <button class="btn" type="button" onclick="filterCustomer()"><i class="icon-search"></i>搜索</button>
            </div>
            <a class="btn" href="__APP__/Customer/add/return/Inquiry"><i class="icon-user"></i>新增客户</a>
        </td>
</tr>
<tr>
    <td class="tRight" >选择已有产品：</td>
    <td class="tLeft" >
            <div class="input-append">
                <input id="q" name="q" class="input-xlarge search-query" placeholder="搜索"><input id="hz" name="product_id" type="hidden"></input>
                <button class="btn" type="button" onclick="filter()"><i class="icon-search"></i>搜索</button>
                <span class="help-inline alert">选择或添加新产品，仅输其一</span>
            </div>
        </td>
</tr>
<tr>
    <td><strong>或 </strong> 添加新产品：</td>
    <td>
        <span class="f_req">*</span> 英文名<input type="text" name="ename" value="" class="input-xlarge"> 
        <span class="f_req">*</span>CAS <input type="text" name="cas" value=""> 
        中文名<input type="text" name="product_name" value="" class="input-xlarge">
        
    </td>
</tr>
<tr>
    <td>数量：</td>
    <td><input type="text" name="number" value="" class="input-xxlarge">
    </td>
</tr>
<tr>
    <td>要求交货期：</td>
    <td><input type="text" class="span2" name="delivery_date" value="{:toDate(time(),'Y-m-d')}" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})">
询单时间：<input type="text" class="span2" name="create_time" value="{:toDate(time())}" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"> 
    </td>
</tr>

<tr>
	<td class="tRight">询单要求：</td>
        <td class="tLeft"><textarea class="span12" name="remark" rows="3"></textarea>
        </td>
</tr>
<tr>
    <td class="tRight">询单状态：</td>
    <td class="tLeft">{:configList( C('askStatus') )}
        </td>
</tr>
<tr>
    <td class="tRight" >经办人：</td>
    <td class="tLeft" >{:modList('User')}</td>
</tr>
<tr>
    <td class="tRight" >下一步操作：</td>
    <td class="tLeft" >
        <input type="radio" name="donext" value='0'>仅创建询单
        <input type="radio" name="donext" value='1'>创建询单,同时生成采购询价任务
     </td>
</tr>
<tr>
	<td></td>
	<td class="center" width="300">
	<button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i> 创建</button>
    
    <a class="btn btn-primary offset1" href="__URL__"><i class="icon-arrow-left icon-white"></i>返回</a>
	</td>
</tr>
</table>
</form>
</div>
</div>
<include file="Public:footer" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Js/easyui/themes/default/easyui.css">
<script type="text/javascript" src="__PUBLIC__/Js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/filter-product.js"></script>
<load href="__PUBLIC__/Js/My97DatePicker/WdatePicker.js" />
